﻿/* video feed */

.m-video-feeder {
  background: black;
}

.m-video-feeder .xgplayer-fullscreen {
  display: none !important;
}

.m-video-feeder--rotate-fullscreen .swiper,
.m-video-feeder--rotate-fullscreen .swiper-wrapper {
  position: unset !important;
}

.m-video-feeder--rotate-fullscreen .swiper-wrapper,
.m-video-feeder--rotate-fullscreen .swiper-slide {
  transform: unset !important;
}

.m-video-feeder .xg-time-right, .m-video-feeder .xg-time-left {
  display: none !important;
}

.m-video-feeder__player--portrait video {
  object-fit: cover;
}

.m-video-feeder__controls-top {
  display: flex;
  align-items: start;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 24px 18px 0 18px;
  color: rgba(var(--m-theme-on-surface), var(--m-high-emphasis-opacity));
}

.m-video-feeder__controls-top .go-back-btn {
  margin-right: 4px;
}

.m-video-feeder__controls-top .top-content {
  line-height: 36px;
}

.m-video-feeder__controls-bottom {
  position: absolute;
  bottom: 48px;
  left: 0;
  margin: 0 18px;
  color: rgba(var(--m-theme-on-surface), var(--m-medium-emphasis-opacity));
}

.m-video-feeder__controls-right {
  position: absolute;
  right: 0;
  bottom: 48px;
  margin-right: 12px;
  display: flex;
  flex-direction: column;
}

.m-video-feeder__controls-right > .m-btn {
}

.m-video-feeder__controls-right > .m-btn:not(.m-btn--round) {
  font-size: 11px;
  min-width: unset !important;
  padding: 0 !important;
  height: auto !important;
}

.m-video-feeder__controls-right > .m-btn:hover::before {
  opacity: 0;
}

.m-video-feeder__controls-right > .m-btn:not(.m-btn--round) .m-btn__content {
  flex-direction: column;
}

.m-video-feeder__controls-right > .m-btn:not(.m-btn--round) .m-btn__content .m-icon {
  margin-bottom: 4px;
}

.m-video-feeder__controls-right > .m-btn:not(:last-child) {
  margin-bottom: 8px;
}

.m-video-feeder__controls-fullscreen {
  position: absolute;
  left: 50%;
  top: calc(50% + (var(--m-video-height) / 2) + 16px);
  transform: translateX(-50%);
  color: rgba(var(--m-theme-on-surface), var(--m-medium-emphasis-opacity));
}

.m-video-feeder__music-cover {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 0;
  padding-bottom: 50%;
  border-radius: 50%;
  overflow: hidden;
  transform: translate(-50%, -50%);
  animation: rotate 20s linear infinite;
  animation-play-state: paused;
}

.m-video-feeder__player.xgplayer-playing:not(.xgplayer-pause) + .m-video-feeder__controls .m-video-feeder__music-cover {
  animation-play-state: running;
}

.m-video-feeder__music-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}